package com.base.service

import io.swagger.annotations.Api
import io.swagger.annotations.ApiImplicitParam
import io.swagger.annotations.ApiImplicitParams
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam

@Api("socket")
@RequestMapping("/socket")
interface IRPC_Socket {
    @ApiOperation("send")
    @ApiImplicitParams(
            ApiImplicitParam(name = "socketID", value = "socketID", required = true, dataType = "String"),
            ApiImplicitParam(name = "message", value = "发送内容", required = true, dataType = "String")
    )
    @RequestMapping("/send", method = [RequestMethod.POST])
    fun send(@RequestParam socketID: String, @RequestParam message: String): String
}
